	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">


<ui:composition template="template.xhtml">

	<ui:define name="corpo">
		
			<!-- start: PAGE HEADER -->
		<div class="row">
			<div class="col-sm-12">

				<!-- start: PAGE TITLE & BREADCRUMB -->
				<ol class="breadcrumb">
					<li><i class="clip-radio-checked"></i> <a href="#"> FUNCIONARIO
					</a></li>
				</ol>
				<div class="page-header">
					<h1>Lista Funcionários</h1>
				</div>
				<!-- end: PAGE TITLE & BREADCRUMB -->
			</div>
		</div>
		<!-- end: PAGE HEADER -->

		<h:form id="form">
				
				<div class="row">
				<h:messages id="messages" showDetail="true" autoUpdate="true" closable="true" infoClass="alert alert-info col-sm-4"/>
				</div>

				<h:dataTable var="funcionario" styleClass="table table-hover" value="#{funcionarioController.listFuncionario}" >
					
					<h:column >
						<f:facet name="header">Funcionário</f:facet>
						<h:outputText value="#{funcionario.nome}" />
					</h:column>
					
					<h:column >
						<f:facet name="header">Email</f:facet>
						<h:outputText value="#{funcionario.email}" />
					</h:column>
					
					<h:column >
						<f:facet name="header">Equipe</f:facet>
						<h:outputText value="#{funcionario.equipe.nome}" />
					</h:column>

					<h:column style="width:300px;">
						<f:facet name="header">Editar</f:facet>	
						<h:button styleClass="btn btn-primary" outcome="cadastraCelula" style="width:100px;" value="editar" />
					</h:column>

					<h:column headerText="Excluir" style="width:300px;">
						<f:facet name="header">Excluir</f:facet>
						<h:commandButton styleClass="btn btn-danger" id="excluir" value="excluir" icon="ui-icon-trash" style="width:100px;" action="#{funcionarioController.excluir()}" >
							<f:setPropertyActionListener target="#{funcionarioController.funcionario}" value="#{funcionario}" />
						</h:commandButton>
					</h:column>
				</h:dataTable>

		</h:form>
		

	</ui:define>

</ui:composition>

</html>